package Server;

import java.util.ArrayList;

import GameModel.mGame;
import Player.mPlayer;

/**
 * @author Christopher Vogel
 *
 */

public class _testBeispielCreatePlayers {
	
	
	public static void main (String[] args) {
		
		
		//mRegisteredPlayers.sort();
		ArrayList<mPlayer> AL = mRegisteredPlayers.get();
		System.out.println(AL.toString());
		mPlayer p1 = AL.get(0);
		mPlayer p2 = AL.get(1);
		mPlayer p3 = AL.get(2);
		
		mGame game = new mGame("Mein Spiel", 3, 3, p1);
		game.addPlayerKonto(p2);
		game.addPlayerKonto(p3);
		
		game.getPlayerKonto(p1).setGamePoints(266);
		game.getPlayerKonto(p2).setGamePoints(77);
		game.getPlayerKonto(p3).setGamePoints(99);
		
		mRegisteredPlayers.calculateStatistics(game);
		
		//mRegisteredPlayers.reset(true);
		System.out.println(AL.toString());
		mRegisteredPlayers.save();
	}
}
